.class Lcom/wmr/order/OrderlistActivity$11;
.super Ljava/lang/Thread;
.source "OrderlistActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/wmr/order/OrderlistActivity;->getorderlist()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/wmr/order/OrderlistActivity;


# direct methods
.method constructor <init>(Lcom/wmr/order/OrderlistActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    .line 545
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 15

    .prologue
    .line 547
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 549
    iget-object v12, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    # getter for: Lcom/wmr/order/OrderlistActivity;->temporderls:Ljava/util/List;
    invoke-static {v12}, Lcom/wmr/order/OrderlistActivity;->access$10(Lcom/wmr/order/OrderlistActivity;)Ljava/util/List;

    move-result-object v12

    invoke-interface {v12}, Ljava/util/List;->clear()V

    .line 550
    new-instance v6, Landroid/os/Message;

    invoke-direct {v6}, Landroid/os/Message;-><init>()V

    .line 551
    .local v6, "msg":Landroid/os/Message;
    iget-object v12, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    .line 552
    const-string v13, "userInfo"

    const/4 v14, 0x0

    .line 551
    invoke-virtual {v12, v13, v14}, Lcom/wmr/order/OrderlistActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v7

    .line 553
    .local v7, "preferences":Landroid/content/SharedPreferences;
    const-string v12, "uid"

    const-string v13, ""

    invoke-interface {v7, v12, v13}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 554
    .local v10, "uid":Ljava/lang/String;
    const-string v12, "pass"

    const-string v13, ""

    invoke-interface {v7, v12, v13}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 555
    .local v8, "pwd":Ljava/lang/String;
    new-instance v12, Ljava/lang/StringBuilder;

    iget-object v13, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    # getter for: Lcom/wmr/order/OrderlistActivity;->m:Lmyapp/MyApp;
    invoke-static {v13}, Lcom/wmr/order/OrderlistActivity;->access$12(Lcom/wmr/order/OrderlistActivity;)Lmyapp/MyApp;

    move-result-object v13

    invoke-virtual {v13}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v13

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 556
    const-string v13, "/index.php?ctrl=app&action=neworder&ordershowtype="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 557
    iget-object v13, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    # getter for: Lcom/wmr/order/OrderlistActivity;->ordershowtype:Ljava/lang/String;
    invoke-static {v13}, Lcom/wmr/order/OrderlistActivity;->access$14(Lcom/wmr/order/OrderlistActivity;)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&uid="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&pwd="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 558
    const-string v13, "&page="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    iget-object v13, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    # getter for: Lcom/wmr/order/OrderlistActivity;->page:I
    invoke-static {v13}, Lcom/wmr/order/OrderlistActivity;->access$9(Lcom/wmr/order/OrderlistActivity;)I

    move-result v13

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&datatype=json"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 555
    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    .line 560
    .local v11, "url":Ljava/lang/String;
    const-string v12, "OrderlistACtivity"

    new-instance v13, Ljava/lang/StringBuilder;

    const-string v14, "getShopSource \u83b7\u53d6\u8ba2\u5355\u5217\u8868"

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v12, v13}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 561
    iget-object v12, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    # getter for: Lcom/wmr/order/OrderlistActivity;->m:Lmyapp/MyApp;
    invoke-static {v12}, Lcom/wmr/order/OrderlistActivity;->access$12(Lcom/wmr/order/OrderlistActivity;)Lmyapp/MyApp;

    move-result-object v12

    invoke-static {v11, v12}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v9

    .line 565
    .local v9, "str":Ljava/lang/String;
    :try_start_0
    new-instance v5, Lorg/json/JSONObject;

    invoke-direct {v5, v9}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 566
    .local v5, "json":Lorg/json/JSONObject;
    const-string v12, "error"

    invoke-virtual {v5, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    const-string v13, "true"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_0

    .line 569
    const-string v12, "msg"

    invoke-virtual {v5, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    iput-object v12, v6, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 570
    const/4 v12, 0x1

    iput v12, v6, Landroid/os/Message;->arg1:I

    .line 571
    iget-object v12, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    iget-object v12, v12, Lcom/wmr/order/OrderlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 615
    .end local v5    # "json":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 574
    .restart local v5    # "json":Lorg/json/JSONObject;
    :cond_0
    const-string v12, "msg"

    invoke-virtual {v5, v12}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v12

    if-eqz v12, :cond_1

    .line 576
    const/4 v12, 0x2

    iput v12, v6, Landroid/os/Message;->arg1:I

    .line 577
    iget-object v12, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    iget-object v12, v12, Lcom/wmr/order/OrderlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 607
    .end local v5    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v2

    .line 609
    .local v2, "e":Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    .line 612
    const/4 v12, 0x5

    iput v12, v6, Landroid/os/Message;->arg1:I

    .line 613
    iget-object v12, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    iget-object v12, v12, Lcom/wmr/order/OrderlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 582
    .end local v2    # "e":Lorg/json/JSONException;
    .restart local v5    # "json":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    sget-object v12, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v13, "\u8f6c\u6362\u6570\u636e"

    invoke-virtual {v12, v13}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 583
    const-string v12, "msg"

    invoke-virtual {v5, v12}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    .line 584
    .local v4, "jarray":Lorg/json/JSONArray;
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v12

    const/4 v13, 0x1

    if-ge v12, v13, :cond_2

    .line 585
    const/4 v12, 0x2

    iput v12, v6, Landroid/os/Message;->arg1:I

    .line 586
    iget-object v12, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    iget-object v12, v12, Lcom/wmr/order/OrderlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 590
    :cond_2
    const/4 v3, 0x0

    .local v3, "i":I
    :goto_1
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v12

    if-lt v3, v12, :cond_3

    .line 604
    const-string v12, "\u6570\u636e\u957f\u5ea6"

    new-instance v13, Ljava/lang/StringBuilder;

    iget-object v14, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    # getter for: Lcom/wmr/order/OrderlistActivity;->temporderls:Ljava/util/List;
    invoke-static {v14}, Lcom/wmr/order/OrderlistActivity;->access$10(Lcom/wmr/order/OrderlistActivity;)Ljava/util/List;

    move-result-object v14

    invoke-interface {v14}, Ljava/util/List;->size()I

    move-result v14

    invoke-static {v14}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v14

    invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v13

    invoke-static {v12, v13}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 605
    const/4 v12, 0x3

    iput v12, v6, Landroid/os/Message;->arg1:I

    .line 606
    iget-object v12, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    iget-object v12, v12, Lcom/wmr/order/OrderlistActivity;->h:Landroid/os/Handler;

    invoke-virtual {v12, v6}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 591
    :cond_3
    invoke-virtual {v4, v3}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 592
    .local v1, "c":Ljava/lang/String;
    new-instance v0, Lbean/OrderBean;

    invoke-direct {v0}, Lbean/OrderBean;-><init>()V
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 594
    .local v0, "bb":Lbean/OrderBean;
    :try_start_2
    invoke-static {v0, v1}, LPlugclass/JsonHelper;->toJavaBean(Ljava/lang/Object;Ljava/lang/String;)V

    .line 596
    iget-object v12, p0, Lcom/wmr/order/OrderlistActivity$11;->this$0:Lcom/wmr/order/OrderlistActivity;

    # getter for: Lcom/wmr/order/OrderlistActivity;->temporderls:Ljava/util/List;
    invoke-static {v12}, Lcom/wmr/order/OrderlistActivity;->access$10(Lcom/wmr/order/OrderlistActivity;)Ljava/util/List;

    move-result-object v12

    invoke-interface {v12, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_2
    .catch Ljava/text/ParseException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_0

    .line 590
    :goto_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    .line 597
    :catch_1
    move-exception v2

    .line 599
    .local v2, "e":Ljava/text/ParseException;
    :try_start_3
    invoke-virtual {v2}, Ljava/text/ParseException;->printStackTrace()V
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_0

    goto :goto_2
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 618
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 619
    monitor-exit p0

    return-void

    .line 618
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
